\mode<presentation>


\setbeamertemplate{background}{
  \begin{tikzpicture}
    \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
    \fill[color=essblue] (0,0) rectangle(\the\paperwidth,\the\paperheight);
    \ifnum\thepage>1\relax%
    \fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
    \fi
  \end{tikzpicture}
}

\defbeamertemplate*{title page}{ess}[1][]
{
  \vskip -0.7cm
  \hfill\includegraphics[width=2cm]{figs/ess-logo-new-white.pdf}
  \vskip 0.2\paperheight
  \begin{beamercolorbox}[wd=\the\paperwidth,leftskip=0cm,#1]{title page header}
    \centering
    {\bf\usebeamerfont{title}\inserttitle\par}
    \usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par
  \end{beamercolorbox}
  \bigskip
  \begin{beamercolorbox}[wd=\the\paperwidth,leftskip=0cm,#1]{author}
    \centering
    \usebeamerfont{author}\insertauthor\par
    \bigskip
    \usebeamerfont{institute}\insertinstitute
  \end{beamercolorbox}
  \vfill
  \begin{beamercolorbox}[wd=12cm,leftskip=0cm,#1]{date}
    \centering
    \usebeamerfont{author}\insertdate \\
%    www.europeanspallationsource.se
  \end{beamercolorbox}
}

\setbeamertemplate{items}[square]
\setbeamertemplate{sections/subsections in toc}[square]

\mode<all>